﻿using OnlineOrder.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OnlineOrder.UI.用户窗体
{
    public partial class ShoppingCar : Form
    {
        public ShoppingCar()
        {
            InitializeComponent();
        }



        private void button1_Click(object sender, EventArgs e)
        {
            //支付页面
            Pay pay = new Pay();
            this.Hide();
            pay.Show();
            this.Close();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //清空购物车
            dataGridView2.Rows.Clear();
        }

        private void ShoppingCar_Load(object sender, EventArgs e)
        {
            DataTable dt = Middle.dataTable;
            this.dataGridView2.DataSource = dt;
        }
    }
}
